/**
 * Copyright ©2003~2019年7月29日 szkingdom
 * @author raohj
 * @date 2019年7月29日
 * @file RBeanLifeFullCycle.java
 * @comment : please input your comment to this file
 * @version : input version
 * @modify:
 * 		1、 2019年7月29日 由 raohj 新建文件
 */
package com.ccnu.demojava.spring.framework.beans;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.LifecycleProcessor;
import org.springframework.context.Phased;

/**
 * @author raohj
 * @date 2019年7月29日
 * @version 
 * @comment to add your comment
 */
public class RBeanLifeFullCycle implements LifecycleProcessor,Phased {
	private static final Logger log = LoggerFactory.getLogger(RBeanLifeFullCycle.class);
	public RBeanLifeFullCycle() {
		log.info("RBeanLifeFullCycle构造函数");
	}
	
	public void init() {
		log.info("RBeanLifeFullCycle init函数");
	}
	
	public void destory() {
		log.info("RBeanLifeFullCycle destory函数");
	}

	@Override
	public void start() {
		log.info("RBeanLifeFullCycle start构造函数");
		
	}

	@Override
	public void stop() {
		// TODO Auto-generated method stub
		log.info("RBeanLifeFullCycle stop构造函数");
	}

	@Override
	public boolean isRunning() {
		log.info("RBeanLifeFullCycle isRunning构造函数");
		return false;
	}

	@Override
	public int getPhase() {
		log.info("RBeanLifeFullCycle getPhase构造函数");
		return 0;
	}

	@Override
	public void onRefresh() {
		log.info("RBeanLifeFullCycle onRefresh构造函数");
		
	}

	@Override
	public void onClose() {
		log.info("RBeanLifeFullCycle onClose构造函数");
		
	}
}
